Dynomotion

Group: DynoMotion Message: 13675 From: daveymahomh600e Date: 8/6/2016
Subject: "Simple" Coordinated Motion in C Program
Hi Tom,

I have looked through some example C programs for coordinated motion, but because I am not a great programmer I wanted to ask for your guidance.

My machine has a tool change routine which is a C program, but there is a portion which needs to make a coordinated movement of 2 axis. Is there a command line I could use within the C code to accomplish this?

Thank you,
David.


Group: DynoMotion Message: 13687 From: TKSOFT Date: 8/8/2016
Subject: Re: "Simple" Coordinated Motion in C Program
Attachments :
    Hi David,

    What type of coordinated motion do you need to do? For a real basic
    motion you might just command both axes to move independently at the
    same time. However the motion may not be in a straight line unless the
    Jerk/Acceleration/Velocities are scaled properly for the direction.

    Otherwise I've attached an example to use the Coordinated motion buffer.
    Note these files fix a bug vs the example files included in V4.33 so
    use these instead.

    HTH
    Regards
    TK


    On 2016-08-06 06:43, david.m.stevenson@... [DynoMotion] wrote:
    > Hi Tom,
    >
    > I have looked through some example C programs for coordinated motion,
    > but because I am not a great programmer I wanted to ask for your
    > guidance.
    >
    > My machine has a tool change routine which is a C program, but there
    > is a portion which needs to make a coordinated movement of 2 axis. Is
    > there a command line I could use within the C code to accomplish this?
    >
    > Thank you,
    > David.
    >
    Group: DynoMotion Message: 13688 From: David Stevenson Date: 8/8/2016
    Subject: Re: "Simple" Coordinated Motion in C Program
    Hi Tom,

    Thank you for the files.

    The motion uses a motor to lift a horizontal platter with a jacking screw, but once raised (clear of locating pins) the platter needs to rotate (via a separate motor/belt drive). Once the platter starts to rotate it raises/lowers on the jack screw so I need to slowly rotate the jack screw while also rotating the platter to maintain clearance above the locating pins.

    So to summarize, I turn the jack screw to raise the platter, slowly rotate the platter and jack screw together and then turn the jack screw to lower the platter back down onto the locating pins.

    Hope this makes sense.

    BTW your email shows you sent it Saturday, but it only arrived in my Thunderbird (mail not car) about an hour ago. Strange.

    Thanks again,
    David.

    On 8/6/2016 6:58 PM, tk@... [DynoMotion] wrote:
     

    Hi David,

    What type of coordinated motion do you need to do? For a real basic
    motion you might just command both axes to move independently at the
    same time. However the motion may not be in a straight line unless the
    Jerk/Acceleration/Velocities are scaled properly for the direction.

    Otherwise I've attached an example to use the Coordinated motion buffer.
    Note these files fix a bug vs the example files included in V4.33 so
    use these instead.

    HTH
    Regards
    TK

    On 2016-08-06 06:43, david.m.stevenson@... [DynoMotion] wrote:
    > Hi Tom,
    >
    > I have looked through some example C programs for coordinated motion,
    > but because I am not a great programmer I wanted to ask for your
    > guidance.
    >
    > My machine has a tool change routine which is a C program, but there
    > is a portion which needs to make a coordinated movement of 2 axis. Is
    > there a command line I could use within the C code to accomplish this?
    >
    > Thank you,
    > David.
    >


    Virus-free. www.avast.com
    Group: DynoMotion Message: 13689 From: mekanisms Date: 8/8/2016
    Subject: Re: "Simple" Coordinated Motion in C Program
    Tom,

    What was the bug that was fixed in this version? I'm currently using 4.33.



    On Aug 6, 2016 at 3:58 PM, <tk@... [DynoMotion]> wrote:

     

    Hi David,

    What type of coordinated motion do you need to do? For a real basic
    motion you might just command both axes to move independently at the
    same time. However the motion may not be in a straight line unless the
    Jerk/Acceleration/Velocities are scaled properly for the direction.

    Otherwise I've attached an example to use the Coordinated motion buffer.
    Note these files fix a bug vs the example files included in V4.33 so
    use these instead.

    HTH
    Regards
    TK

    On 2016-08-06 06:43, david.m.stevenson@... [DynoMotion] wrote:
    > Hi Tom,
    >
    > I have looked through some example C programs for coordinated motion,
    > but because I am not a great programmer I wanted to ask for your
    > guidance.
    >
    > My machine has a tool change routine which is a C program, but there
    > is a portion which needs to make a coordinated movement of 2 axis. Is
    > there a command line I could use within the C code to accomplish this?
    >
    > Thank you,
    > David.
    >

    Group: DynoMotion Message: 13695 From: TKSOFT Date: 8/10/2016
    Subject: Re: "Simple" Coordinated Motion in C Program
    The bug only relates to doing Coordinated Motion from within KFLOP using
    the attached User Program Example. See the files that were attached for
    the corrected example.

    Regards
    TK

    On 2016-08-08 19:09, b.sahilu@... [DynoMotion] wrote:
    > Tom,
    >
    > What was the bug that was fixed in this version? I'm currently using
    > 4.33.
    >
    >> On Aug 6, 2016 at 3:58 PM, <tk@... [DynoMotion]> wrote:
    >>
    >> Hi David,
    >>
    >> What type of coordinated motion do you need to do? For a real basic
    >> motion you might just command both axes to move independently at the
    >>
    >> same time. However the motion may not be in a straight line unless
    >> the
    >> Jerk/Acceleration/Velocities are scaled properly for the direction.
    >>
    >> Otherwise I've attached an example to use the Coordinated motion
    >> buffer.
    >> Note these files fix a bug vs the example files included in V4.33 so
    >>
    >> use these instead.
    >>
    >> HTH
    >> Regards